home *** CD-ROM | disk | FTP | other *** search
/ QRZ! Ham Radio 8 / QRZ Ham Radio Callsign Database - Volume 8.iso / mac / files / dsp / dspkgctr.z / dspkgctr / gcc / flags.h < prev    next >
C/C++ Source or Header  |  1992-06-08  |  6KB  |  192 lines

  1. /* Compilation switch flag definitions for GNU CC.
  2.    Copyright (C) 1987, 1988 Free Software Foundation, Inc.
  3.  
  4. This file is part of GNU CC.
  5.  
  6. GNU CC is free software; you can redistribute it and/or modify
  7. it under the terms of the GNU General Public License as published by
  8. the Free Software Foundation; either version 1, or (at your option)
  9. any later version.
  10.  
  11. GNU CC is distributed in the hope that it will be useful,
  12. but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  14. GNU General Public License for more details.
  15.  
  16. You should have received a copy of the GNU General Public License
  17. along with GNU CC; see the file COPYING.  If not, write to
  18. the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.  */
  19.  
  20. /* Name of the input .c file being compiled.  */
  21. extern char *main_input_filename;
  22.  
  23. /* 1 => write gdb debugging output (using symout.c).
  24.    2 => write dbx debugging output (using dbxout.c).
  25.    3 => write sdb debugging output (using sdbout.c).  */
  26. enum debugger { NO_DEBUG = 0, GDB_DEBUG = 1, DBX_DEBUG = 2, SDB_DEBUG = 3,
  27.         EXTENDED_DBX_DEBUG = 4 };
  28.  
  29. extern enum debugger write_symbols;
  30.  
  31. /* Nonzero means use GDB-only extensions of DBX format.  */
  32. extern int use_gdb_dbx_extensions;
  33.  
  34. /* Nonzero means do optimizations.  -opt.  */
  35.  
  36. extern int optimize;
  37.  
  38. /* Nonzero means do stupid register allocation.  -noreg.
  39.    This and `optimize' are controlled by different switches in cc1,
  40.    but normally cc controls them both with the -O switch.  */
  41.  
  42. extern int obey_regdecls;
  43.  
  44. /* Don't print functions as they are compiled and don't print
  45.    times taken by the various passes.  -quiet.  */
  46.  
  47. extern int quiet_flag;
  48.  
  49. /* Don't print warning messages.  -w.  */
  50.  
  51. extern int inhibit_warnings;
  52.  
  53. /* Do print extra warnings (such as for uninitialized variables).  -W.  */
  54.  
  55. extern int extra_warnings;
  56.  
  57. /* Nonzero to warn about unused local variables.  */
  58.  
  59. extern int warn_unused;
  60.  
  61. /* Nonzero means warn about all declarations which shadow others.   */
  62.  
  63. extern int warn_shadow;
  64.  
  65. /* Warn if a switch on an enum fails to have a case for every enum value.  */
  66.  
  67. extern int warn_switch;
  68.  
  69. /* Nonzero means warn about any identifiers that match in the first N
  70.    characters.  The value N is in `id_clash_len'.  */
  71.  
  72. extern int warn_id_clash;
  73. extern int id_clash_len;
  74.  
  75. /* Nonzero if generating code to do profiling.  */
  76.  
  77. extern int profile_flag;
  78.  
  79. /* Nonzero if generating code to do profiling on the basis of basic blocks.  */
  80.  
  81. extern int profile_block_flag;
  82.  
  83. /* Nonzero for -pedantic switch: warn about anything
  84.    that standard C forbids.  */
  85.  
  86. extern int pedantic;
  87.  
  88. /* Now the symbols that are set with `-f' switches.  */
  89.  
  90. /* Nonzero means `char' should be signed.  */
  91.  
  92. extern int flag_signed_char;
  93.  
  94. /* Nonzero means give an enum type only as many bytes as it needs.  */
  95.  
  96. extern int flag_short_enums;
  97.  
  98. /* Nonzero for -fcaller-saves: allocate values in regs that need to
  99.    be saved across function calls, if that produces overall better code.
  100.    Optional now, so people can test it.  */
  101.  
  102. extern int flag_caller_saves;
  103.  
  104. /* Nonzero for -fpcc-struct-return: return values the same way PCC does.  */
  105.  
  106. extern int flag_pcc_struct_return;
  107.  
  108. /* Nonzero for -fforce-mem: load memory value into a register
  109.    before arithmetic on it.  This makes better cse but slower compilation.  */
  110.  
  111. extern int flag_force_mem;
  112.  
  113. /* Nonzero for -fforce-addr: load memory address into a register before
  114.    reference to memory.  This makes better cse but slower compilation.  */
  115.  
  116. extern int flag_force_addr;
  117.  
  118. /* Nonzero for -fdefer-pop: don't pop args after each function call;
  119.    instead save them up to pop many calls' args with one insns.  */
  120.  
  121. extern int flag_defer_pop;
  122.  
  123. /* Nonzero for -ffloat-store: don't allocate floats and doubles
  124.    in extended-precision registers.  */
  125.  
  126. extern int flag_float_store;
  127.  
  128. /* Nonzero for -fcombine-regs:
  129.    allow instruction combiner to combine an insn
  130.    that just copies one reg to another.  */
  131.  
  132. extern int flag_combine_regs;
  133.  
  134. /* Nonzero enables strength-reduction in loop.c.  */
  135.  
  136. extern int flag_strength_reduce;
  137.  
  138. /* Nonzero for -fwritable-strings:
  139.    store string constants in data segment and don't uniquize them.  */
  140.  
  141. extern int flag_writable_strings;
  142.  
  143. /* Nonzero means don't put addresses of constant functions in registers.
  144.    Used for compiling the Unix kernel, where strange substitutions are
  145.    done on the assembly output.  */
  146.  
  147. extern int flag_no_function_cse;
  148.  
  149. /* Nonzero for -fomit-frame-pointer:
  150.    don't make a frame pointer in simple functions that don't require one.  */
  151.  
  152. extern int flag_omit_frame_pointer;
  153.  
  154. /* This isn't a flag, but everyone who needs flag_omit_frame_pointer
  155.    also needs this.
  156.    Nonzero means current function must be given a frame pointer.
  157.    Set in stmt.c if anything is allocated on the stack there.
  158.    Set in reload1.c if anything is allocated on the stack there.  */
  159.  
  160. extern int frame_pointer_needed;
  161.  
  162. /* Nonzero to inhibit use of define_optimization peephole opts.  */
  163.  
  164. extern int flag_no_peephole;
  165.  
  166. /* Nonzero means all references through pointers are volatile.  */
  167.  
  168. extern int flag_volatile;
  169.  
  170. /* Nonzero means make functions that look like good inline candidates
  171.    go inline.  */
  172.  
  173. extern int flag_inline_functions;
  174.  
  175. /* Nonzero for -fkeep-inline-functions: even if we make a function
  176.    go inline everywhere, keep its defintion around for debugging
  177.    purposes.  */
  178.  
  179. extern int flag_keep_inline_functions;
  180.  
  181. /* Nonzero if we are only using compiler to check syntax errors.  */
  182.  
  183. extern int flag_syntax_only;
  184.  
  185. /* Nonzero means make the text shared if supported.  */
  186.  
  187. extern int flag_shared_data;
  188.  
  189. /* Nonzero means put things in delayed-branch slots if supported. */
  190.  
  191. extern int flag_delayed_branch;
  192.